from odmantic import AIOEngine
from motor.motor_asyncio import AsyncIOMotorClient


def create_db_engine():
    client = AsyncIOMotorClient("mongodb://localhost:27017/")
    engine = AIOEngine(client=client, database="myProfile")
    return engine
